package com.example.consumer.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 测试nacos配置是否完成
 * @author chengjian 
 * @date 2021/6/4
 */
@RestController
public class TestController {
    @Value("${cj.name}")
    private String cj;

    @GetMapping(value = "/name")
    public String name(){
        return cj;
    }
}
